﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using MT.eVotePRS.Model;
using MT.eVotePRS.Persistence.Interfaces;

namespace MT.eVotePRS.Persistence.MapperDao
{
    public class InventoryTableSqlMapDao : BaseMapDao, IInventoryTableDao
    {
        public object InsertInventory(InventoryTable inventory)
        {
            return ExecuteInsert("InsertInventory", inventory);
        }

        public InventoryTable CheckHandset(string handsetId)
        {
            return ExecuteQueryForObject<InventoryTable>("", handsetId);

        }

        public IList GetAllInventoryList()
        {
            return ExecuteQueryForList("SelectAllInventorys", null);
        }
    }
}
